package com.pointi.emoTools;

public class vasUnit
{
	private int callkey ;
	private int subtime ;
	private int status ;
	private int voice1_cnt ;
	private int voice2_cnt ;
	private int nonvoice_cnt ;
	private double voice1_idx ;
	private double voice2_idx ;
	private double nonvoice_idx ;
	
	public vasUnit()
	{
		//
	}
	
	public vasUnit(int inCallkey, int inSubtime, int inStatus, int inVoice1_cnt, int inVoice2_cnt, int inNonvoice_cnt)
	{
		callkey = inCallkey ;
		subtime = inSubtime ;
		status = inStatus ;
		voice1_cnt = inVoice1_cnt ;
		voice2_cnt = inVoice2_cnt ;
		nonvoice_cnt = inNonvoice_cnt ;
		this.fnCalculateIndex() ;
	}
	
	public void fnInitialize()
	{
		subtime = 0 ;
		status = 0 ;
		voice1_cnt = 0 ;
		voice2_cnt = 0 ;
		nonvoice_cnt = 0 ;
		voice1_idx = 0 ;
		voice2_idx = 0 ;
		nonvoice_idx = 0 ;
	}
	
	public void fnCalculateIndex()
	{
		int total_cnt = voice1_cnt + voice2_cnt + nonvoice_cnt ;
		voice1_idx = voice1_cnt * 100 / total_cnt ;
		voice2_idx = voice2_cnt * 100 / total_cnt ;
		nonvoice_idx = nonvoice_cnt * 100 / total_cnt ;
	}
	
	public void callkey(int inCallkey) { callkey = inCallkey ; }
	public void subtime(int inSubtime) { subtime = inSubtime ; }
	public void status(int inStatus) { status = inStatus ; }
	public void voice1_cnt(int inVoice1_cnt) { voice1_cnt = inVoice1_cnt ; }
	public void voice2_cnt(int inVoice2_cnt) { voice2_cnt = inVoice2_cnt ; }
	public void nonvoice_cnt(int inNonvoice_cnt) { nonvoice_cnt = inNonvoice_cnt ; }
	public void voice1_idx(int inVoice1_idx) { voice1_idx = inVoice1_idx ; }
	public void voice2_idx(int inVoice2_idx) { voice2_idx = inVoice2_idx ; }
	public void nonvoice_idx(int inNonvoice_idx) { nonvoice_idx = inNonvoice_idx ; }
	
	public int callkey() { return callkey ; }
	public int subtime() { return subtime ; }
	public int status() { return status ; }
	public int voice1_cnt() { return voice1_cnt ; }
	public int voice2_cnt() { return voice2_cnt ; }
	public int nonvoice_cnt() { return nonvoice_cnt ; }
	public double voice1_idx() { return voice1_idx ; }
	public double voice2_idx() { return voice2_idx ; }
	public double nonvoice_idx() { return nonvoice_idx ; }
	
	public void voice1_add() { voice1_cnt++ ; }
	public void voice2_add() { voice2_cnt++ ; }
	public void nonvoice_add() { nonvoice_cnt++ ; }
}
